<template>
  <el-container>
    <el-header style=" background-color: #ffffff;line-height: 60px;">

    </el-header>
    <el-container>
      <el-aside style="background-color: #ffffff;height:500px;">
        <el-col :span="24">
          <el-menu default-active="1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose">
            服务栏<br><br>
            <router-link to="/patientIn" underline="false">
              <el-menu-item index="1">
                <i class="el-icon-menu"></i>
                <span slot="title">患者信息</span>
              </el-menu-item>
            </router-link>
            <router-link to="/prescriptionIn" underline="false">
              <el-menu-item index="2">
                <i class="el-icon-menu"></i>
                <span slot="title">处方配药</span>
              </el-menu-item>
            </router-link>
            <router-link to="/operationReser" underline="false">
              <el-menu-item index="3">
                <i class="el-icon-document"></i>
                <span slot="title">手术预约</span>
              </el-menu-item>
            </router-link>
            <router-link to="/operation" underline="false">
              <el-menu-item index="4">
                <i class="el-icon-setting"></i>
                <span slot="title">手术记录</span>
              </el-menu-item>
            </router-link>
            <br><br><br>
            <el-button type="primary" @click="gogo()">返回列表</el-button>
          </el-menu>
        </el-col>
      </el-aside>
      <el-container>
        <el-main style="margin-left:-120px;background-color: #ffffff;height:550px;margin-top:-50px">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </el-container>
</template>
<style></style>
<script>
export default {
  data() {
    return {
    };
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
    gogo(){
      this.$router.push("/in_pa_qu");
    }
  },
  mounted() {
  }
}
</script>